home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / office deutch / INFOPATH.NL-NL / INFLR.CAB / FL_pattern_xml_120444_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2005-08-12  |  2KB  |  48 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8"?>
  2. <CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <Header>
  4.     <Title>
  5.       <!-- _locID_text="title" _locComment="" -->pattern restriction</Title>
  6.     <Author>Microsoft Corporation</Author>
  7.     <Shortcut>atpattern</Shortcut>
  8.     <Description>
  9.       <!-- _locID_text="description" _locComment="" -->XML snippet for defining a XSD attribute of simpleType with pattern</Description>
  10.     <SnippetTypes>
  11.       <SnippetType>SurroundsWith</SnippetType>
  12.       <SnippetType>Expansion</SnippetType>
  13.     </SnippetTypes>
  14.   </Header>
  15.   <Snippet>
  16.     <Declarations>
  17.       <Literal>
  18.         <ID>name</ID>
  19.         <ToolTip>
  20.           <!-- _locID_text="tooltip1" _locComment="" -->Name of the attribute.</ToolTip>
  21.         <Default>name</Default>
  22.       </Literal>
  23.       <Literal>
  24.         <ID>value</ID>
  25.         <ToolTip>
  26.           <!-- _locID_text="tooltip2" _locComment="" -->Pattern expression.</ToolTip>
  27.         <Default>\d\d\d</Default>
  28.       </Literal>
  29.       <Literal>
  30.         <ID>type</ID>
  31.         <ToolTip>
  32.           <!-- _locID_text="tooltip3" _locComment="" -->Type to restrict.</ToolTip>
  33.         <Default>string</Default>
  34.       </Literal>
  35.       <Literal Editable="false">
  36.         <ID>prefix</ID>
  37.         <Function>LookupPrefix("http://www.w3.org/2001/XMLSchema")</Function>
  38.       </Literal>
  39.     </Declarations>
  40.     <Code Language="XML"><![CDATA[<xsd:attribute name="$name$" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  41.      <xsd:simpleType>
  42.       <xsd:restriction base="$prefix$$type$">
  43.        <xsd:pattern value="$value$"/>$selected$$end$
  44.       </xsd:restriction>
  45.      </xsd:simpleType>
  46.     </xsd:attribute>]]></Code>
  47.   </Snippet>
  48. </CodeSnippet>